print("Input a line of words and I'll make them title-like: ")

some_title = input()

title_like_words = []

for word in some_title.split(" "):
    if word:
        word = word.lower()
        word = word.capitalize()
    title_like_words.append(word)

some_title = " ".join(title_like_words)

print(some_title)
